<?php
/**
 * Created by PhpStorm.
 * User: izbol
 * Date: 2017/3/30
 * Time: 20:35
 */
session_start();
include ('../config.php');
$session_aid=$input->session('aid');
if($session_aid===false){
    header('location:login.php');
}
$sql="select * from admin WHERE aid='$session_aid'";
$row=$db->query($sql);
$session_auser=$row->fetch_array(MYSQLI_ASSOC);
?>